package pe.edu.upc.dsd.epica.movil;

import pe.edu.upc.dsd.epica.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class oferta extends Activity {
	private ListView lv1;
	private String lv_arr[] = { "Arroz con Pollo 4 CHK - 80%", "Arroz con Pato 3 CHK - 70%", "Arroz con Chancho 1 CHK - 80%",
			"Arroz con Huevo 4 CHK - 50%","Arroz con Gato 2 CHK - 70%" };

	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.oferta);
		lv1 = (ListView) findViewById(R.id.oferta_list);
		// By using setAdpater method in listview we an add string array in
		// list.
		lv1.setAdapter(new ArrayAdapter<String>(this,
				android.R.layout.simple_list_item_1, lv_arr));
	}
}